package com.dao;

import com.entity.Existmortgage;
import com.entity.ExistmortgageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ExistmortgageDao {
    long countByExample(ExistmortgageExample example);

    int deleteByExample(ExistmortgageExample example);

    int deleteByPrimaryKey(Integer emid);

    int insert(Existmortgage record);

    int insertSelective(Existmortgage record);

    List<Existmortgage> selectByExample(ExistmortgageExample example);

    Existmortgage selectByPrimaryKey(Integer emid);

    int updateByExampleSelective(@Param("record") Existmortgage record, @Param("example") ExistmortgageExample example);

    int updateByExample(@Param("record") Existmortgage record, @Param("example") ExistmortgageExample example);

    int updateByPrimaryKeySelective(Existmortgage record);

    int updateByPrimaryKey(Existmortgage record);

    Existmortgage findByServiceid(Integer serviceid);
}